package org.dzq.designmode.adapter.classadapter;

/**
 * @ClassName: Test
 * @Package: org.dzq.designmode.adapter.classadapter
 * @author: 越
 * @date: 2023/6/13 21:52
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        Target target = new ConcreteTarget();
        int phoneVoltage = target.getPhoneVoltage();

        Target classAdapter =  new ClassAdapter();
        int phoneVoltageByClassAdapter = classAdapter.getPhoneVoltage();
        Adaptee adaptee =  new ClassAdapter();
        int homeVoltage = adaptee.getHomeVoltage();

        System.out.println(phoneVoltage);
        System.out.println(phoneVoltageByClassAdapter);
        System.out.println(homeVoltage);
    }
}
